package com.smilentfish.weather;

import com.fu.weather.R;

import android.app.Activity;
import android.content.pm.PackageInfo;
import android.os.Bundle;
import android.widget.TextView;
import android.widget.Toast;

public class About extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.about);
		
		PackageInfo pinfo;
		try {
			pinfo = getPackageManager().getPackageInfo(getPackageName(), 0);
			//int versionNumber = pinfo.versionCode;
			String versionName = pinfo.versionName;
			TextView txt = (TextView) findViewById(R.id.txtAbout);
			txt.setText("HelloWeather " + versionName + "\nAuthor: Fu Yu");
		} catch (Exception e) {
			Toast.makeText(About.this, "Unknown Error.",
					Toast.LENGTH_LONG).show();
		}
		
		
		
	}

}
